package zjh_20230403;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class Json {
    public static void main(String[] args) {
        File file = new File("src/zjh_20230403/students.json");
        try {
            String s = FileUtils.readFileToString(file);
            JSONObject jsonObject = JSON.parseObject(s);
            System.out.println(jsonObject);

        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}
